<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="keywords"
          content="admin, dashboard, bootstrap, template, flat, modern, theme, responsive, fluid, retina, backend, html5, css, css3">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <link rel="shortcut icon" href="#" type="image/png">

    <title>学生信息管理</title>
    <script src="/js/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script src="/js/jquery-ui-1.9.2.custom.min.js" type="text/javascript"></script>
    <script src="/js/jquery-migrate-1.2.1.min.js " type="text/javascript"></script>
    <script src="/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="/js/modernizr.min.js" type="text/javascript"></script>
    <script src="/js/jquery.nicescroll.js" type="text/javascript"></script>
    <script src="/js/js/jquery223.min.js" type="text/javascript"></script>
    <!--icheck-->
    <link href="/js/iCheck/skins/minimal/minimal.css" rel="stylesheet">
    <link href="/js/iCheck/skins/square/square.css" rel="stylesheet">
    <link href="/js/iCheck/skins/square/red.css" rel="stylesheet">
    <link href="/js/iCheck/skins/square/blue.css" rel="stylesheet">

    <link rel="stylesheet" type="text/css" href="/css/bootstrap-datetimepicker.css"/>

    <!--dashboard calendar-->
    <link href="/css/clndr.css" rel="stylesheet">

    <!--Morris Chart CSS -->
    <link rel="stylesheet" href="/js/morris-chart/morris.css">

    <!--common-->
    <link href="/css/style.css" rel="stylesheet">
    <link href="/css/style-responsive.css" rel="stylesheet">
    <script src="/js/js/bootstrap-table.min.js" type="text/javascript"></script>
    <script src="/js/js/bootstrap-table-zh-CN.min.js" type="text/javascript"></script>
    <script src="/js/js/bootstrap-table-editable.js" type="text/javascript"></script>
    <script src="/js/js/bootstrap-editable.min.js" type="text/javascript"></script>
    <script src="/js/js/bootstrap-datetimepicker.js" type="text/javascript"></script>
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="/js/html5shiv.js" type="text/javascript"></script>
    <script src="/js/respond.min.js" type="text/javascript"></script>
    <![endif]-->
</head>
<body class="sticky-header">

<section>
    <!-- left side start-->
    <div class="left-side sticky-left-side">

        <!--logo and iconic logo start-->
        <div class="logo">
            <a onclick="clicklogo()"><img src="/images/logo.png" alt="" style="width: 70%;height: 70%"></a>
        </div>

        <div class="logo-icon text-center">
            <a href="teacherindex.html"><img src="/images/logo_icon.png" alt=""></a>
        </div>
        <!--logo and iconic logo end-->

        <div class="left-side-inner">

            <!-- visible to small devices only -->
            <div class="visible-xs hidden-sm hidden-md hidden-lg">
                <div class="media logged-user">

                </div>

                <h5 class="left-nav-title">商院就业系统</h5>
                <ul class="nav nav-pills nav-stacked custom-nav">

                    <li class="menu-list"><a href=""><i class="fa fa-book"></i> <span>个人中心</span></a>
                        <ul class="sub-menu-list">
                            <li><a data-toggle="modal" data-target="#myModalInfo" onclick="selectTeaBaseInfo()"><i
                                    class="fa fa-user"></i> 基础信息</a></li>
                            <li><a data-toggle="modal" data-target="#myModalInfoRelease"><i class="fa fa-user"></i> 信息发布</a>
                            </li>
                            <li><a data-toggle="modal" data-target="#myModal"><i class="fa fa-cog"></i>修改密码</a></li>
                            <li><a onclick="deleteAcount()"><i class="fa fa-cog"></i>注销账号</a></li>
                            <li><a onclick="loginout()"><i class="fa fa-sign-out"></i> 退出登录</a></li>
                        </ul>
                    </li>
                </ul>
            </div>

            <!--sidebar nav start-->
            <ul class="nav nav-pills nav-stacked custom-nav">
                <li class="menu-list"><a href=""><i class="fa fa-book"></i>
                    <span>学生管理</span></a>

                </li>

                <li class="menu-list"><a onclick="employmentdistribution()"><i class="fa fa-map-marker"></i>
                    <span>就业分布</span></a>

                </li>

            </ul>
            <!--sidebar nav end-->

        </div>
    </div>
    <!-- left side end-->

    <!-- main content start-->
    <div class="main-content">

        <!-- header section start-->
        <div class="header-section">

            <!--toggle button start-->
            <a class="toggle-btn"><i class="fa fa-bars"></i></a>
            <!--toggle button end-->

            <!--search start-->
            <div style="width: 65%;float: left">
                <form class="searchform" id="searchform">
                    <input type="text" class="form-control" id="stu_code" name="stu_code" placeholder="学号查询"/>
                    <input type="text" class="form-control" id="stu_name" name="stu_name" placeholder="姓名查询"/>
                    <input type="text" class="form-control" id="stu_profession" name="stu_profession"
                           placeholder="专业查询"/>
                    <button type="button" class="btn btn-default" data-dismiss="modal"
                            style="margin-top: 0.7%;margin-left: 10px" onclick="mohuSelectStu()">查询
                    </button>
                </form>
            </div>

            <!--search end-->

            <!--notification menu start -->
            <div class="menu-right" style="width: 12%;float: right">
                <ul class="notification-menu">
                    <li>
                        <a href="#" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                            <span id="currentuser"></span>! 个人中心
                            <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu dropdown-menu-usermenu">
                            <li><a data-toggle="modal" data-target="#myModalInfo" onclick="selectTeaBaseInfo()"><i
                                    class="fa fa-user"></i> 基础信息</a></li>
                            <li><a data-toggle="modal" data-target="#myModalInfoRelease"><i class="fa fa-user"></i> 信息发布</a>
                            </li>
                            <li><a data-toggle="modal" data-target="#myModal"><i class="fa fa-cog"></i>修改密码</a></li>
                            <li><a onclick="deleteAcount()"><i class="fa fa-cog"></i>注销账号</a></li>
                            <li><a onclick="loginout()"><i class="fa fa-sign-out"></i> 退出登录</a></li>
                        </ul>
                    </li>

                </ul>
            </div>


        </div>

        <div style="width: 100% ;height: 800px;margin-top: 30px;margin-right:1%">
            <div>
                <p class="text-muted" >
                <h3 style="font-size:22px;margin-right:1%">学生信息管理</h3></p>
            </div>
            <hr>
            <div>
                <ul class="nav nav-tabs">
                    <li><a href="#table1" rel="external nofollow" data-toggle="tab" style="background-color: #ffffff" onclick="showwei()">未就业</a>
                    </li>
                    <li><a href="#table2" rel="external nofollow" data-toggle="tab" style="background-color: #ffffff" onclick="showyi()">已就业</a>
                    </li>
                    <li><a href="#table3" rel="external nofollow" data-toggle="tab" onclick="showsheng()"
                           style="background-color: #ffffff">升学</a></li>
                </ul>
                <div class="tab-content">
                    <div id="table1" class="tab-pane active" >
                        <table id="tableStuInfowei" style="margin-top: 20px"></table>
                    </div>
                    <div id="table2" class="tab-pane" >
                        <table id="tableStuInfoyi" style="margin-top: 20px"></table>
                    </div>
                    <div id="table3" class="tab-pane" >
                        <table id="tableStuInfosheng" style="margin-top: 20px"></table>
                    </div>
                    <div style="display: none;" id="tableStuInfoDiv">
                        <table id="tableStuInfo" style="margin-top: 20px;"></table>
                    </div>

                </div>

            </div>
        </div>


        <!--body wrapper end-->

        <!--footer section start-->
        <footer style='margin-top:500px'>
            商洛学院信息管理与信息系统毕业设计
        </footer>
        <!--footer section end-->


    </div>
    <!-- main content end-->
</section>
<!--用户修改密码-->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabel">
                    用户密码修改
                </h4>
            </div>
            <div class="modal-body">
                <input type="password" class="form-control" placeholder="原密码" autofocus name="u_oldpwd" id="u_oldpwd"
                       onblur="checkpwd()"><br><br>
                <input type="password" class="form-control" placeholder="新密码" name="u_newpwd" id="u_newpwd"><br><br>
                <input type="password" class="form-control" placeholder="确认新密码" name="u_surenewpwd"
                       id="u_surenewpwd"><br><br>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="submitpwd()">
                    提交更改
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

<!--老师信息完善-->
<div class="modal fade" id="myModalInfo" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabeInfo">
                    基础信息完善
                </h4>
            </div>
            <div class="modal-body">
                <form action="" id="myFormInfo">
                    <div class="form-group">
                        <label class="col-sm-2 control-label" for="tea_name" style="margin-top: 8px">姓名:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control col-sm-10" placeholder="姓名" autofocus name="tea_name"
                                   id="tea_name">
                        </div>
                    </div>
                    <br>
                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="tea_code" style="margin-top: 8px">工号:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" placeholder="工号" autofocus name="tea_code"
                                   id="tea_code">
                        </div>
                    </div>
                    <br>

                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="tea_schoolname" style="margin-top: 8px">学校名称:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" value="商洛学院" name="tea_schoolname"
                                   id="tea_schoolname" readonly='readonly'>
                        </div>
                    </div>
                    <br>
                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="tea_department" style="margin-top: 8px">所在院系:</label>
                        <div class="col-sm-10">
                            <!--                          <input type="text" class="form-control" placeholder="所在院系" name="tea_department" id="tea_department">-->
                            <select class="form-control" placeholder="所在院系" name="tea_department" id="tea_department">

                            </select>
                        </div>
                    </div>
                    <br>


                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="tea_duties" style="margin-top: 8px">个人职务:</label>
                        <div class="col-sm-10">
                            <select class="form-control" placeholder="个人职务" name="tea_duties" id="tea_duties">

                            </select>
                        </div>
                    </div>
                    <br>

                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="tea_tel" style="margin-top: 8px">手机号码:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" placeholder="手机号码" name="tea_tel" id="tea_tel">
                        </div>
                    </div>
                    <br>

                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="tea_qq" style="margin-top: 8px">QQ号码:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" placeholder="QQ号码" name="tea_qq" id="tea_qq">
                        </div>
                    </div>
                    <br>
                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="tea_email" style="margin-top: 8px">电子邮箱:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" placeholder="电子邮箱" name="tea_email" id="tea_email">
                        </div>
                    </div>
                    <br><br><br><br><br><br><br><br>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="submitTeaBaseInfo()">
                    保存信息
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>


<!--校招信息发布-->
<div class="modal fade" id="myModalInfoRelease" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabeInfoRelease">
                    校招信息发布
                </h4>
            </div>
            <div class="modal-body">
                <form action="" id="myFormInfoRelease">
                    <div class="form-group">
                        <label class="col-sm-2 control-label" for="recruit_time" style="margin-top: 8px">校招时间:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" placeholder="校招时间" autofocus name="recruit_time"
                                   id="recruit_time">
                        </div>
                    </div>
                    <br>
                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="recruit_name" style="margin-top: 8px">企业名称:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" placeholder="企业名称" autofocus name="recruit_name"
                                   id="recruit_name">
                        </div>
                    </div>
                    <br>

                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="recruit_address"
                               style="margin-top: 8px">校招地点:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" placeholder="校招地点" name="recruit_address"
                                   id="recruit_address">
                        </div>
                    </div>
                    <br>

                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="recruit_people" style="margin-top: 8px">联系人:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" placeholder="联系人" name="recruit_people"
                                   id="recruit_people">
                        </div>
                    </div>
                    <br>

                    <div class="form-group" style="margin-top: 30px">
                        <label class="col-sm-2 control-label" for="recruit_peopletel"
                               style="margin-top: 8px">联系电话:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" placeholder="联系电话" name="recruit_peopletel"
                                   id="recruit_peopletel">
                        </div>
                    </div>
                    <br>


                    <div class="form-group" style="text-align: center">
                        <span>招聘岗位</span>
                        <textarea class="form-control" rows="5" id="recruit_job" name="recruit_job"></textarea>
                    </div>
                    <div class="form-group" style="text-align: center">
                        <span><h5>技能要求</h5></span>
                        <textarea class="form-control" rows="5" id="recruit_material"
                                  name="recruit_material"></textarea>
                    </div>
                    <div class="form-group" style="text-align: center">
                        <span><h5>薪资福利</h5></span>
                        <textarea class="form-control" rows="5" id="recruit_salary" name="recruit_salary"></textarea>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="submitReleaseInfo()">
                    保存信息
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>


<!--私信-->
<div class="modal fade" id="myModalTalk" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title">
                    与<span id="stu_name_talk"></span>的对话框
                </h4>
            </div>
            <div class="modal-body">

                <div style="height: 350px;width: 100%;border: 1px solid #D3D3D3;overflow-y: auto">


                </div>
                <br>
                <textarea class="form-control" rows="5" id="" name="recruit_salary"></textarea>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary">
                    发送
                </button>
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>

            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>


<!--学生详情选项卡-->
<div class="modal fade" id="myModalChooseInfo" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
     aria-hidden="true" style="margin-top: 5%">


    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title" id="myModalLabeRecruitInfo">
                    学生信息查看
                </h4>
            </div>
            <ul class="nav nav-tabs">
                <li><a href="#con4" rel="external nofollow" data-toggle="tab">二维码</a></li>
                <li><a href="#con1" rel="external nofollow" data-toggle="tab">基础信息</a></li>
                <li><a href="#con2" rel="external nofollow" data-toggle="tab">学籍信息</a></li>
                <li><a href="#con3" rel="external nofollow" data-toggle="tab">就业信息</a></li>
            </ul>
            <!--选项卡的内容-->
            <div class="tab-content">
                <div id="con4" class="tab-pane active">
                    <div class="modal-body" style="text-align: center;display: flex;flex-direction: column">
                        <img src="" alt="" id="imageIdCode" style="width: 200px;height: 200px;margin-left: 32%">
                        <span style="font-size: 14px">手机扫描二维码查看学生信息或点击右侧详情查看</span>
                    </div>
                </div>
                <div id="con1" class="tab-pane">
                    <div class="modal-body">
                        <div class="form-group">
                            <label class="col-sm-2 control-label" for="stu_name" style="margin-top: 8px">姓名:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="姓名" autofocus name="stu_name"
                                       id="stu_name_tea" readonly="readonly">
                            </div>
                        </div>
                        <br>
                        <div class="form-group" style="margin-top: 15px">
                            <label class="col-sm-2 control-label" for="stu_sex" style="margin-top: 8px">性别:</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" placeholder="性别" name="stu_sex" id="stu_sex"
                                       readonly="readonly">
                            </div>
                            <label class="col-sm-2 control-label" for="stu_politics"
                                   style="margin-top: 8px">政治面貌:</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" placeholder="政治面貌" name="stu_politics"
                                       id="stu_politics" readonly="readonly">
                            </div>
                        </div>
                        <br>
                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label" for="stu_idcard" style="margin-top: 8px">身份证:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="身份证号" name="stu_idcard"
                                       id="stu_idcard" readonly="readonly">
                            </div>
                        </div>
                        <br>
                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label" for="stu_tel" style="margin-top: 8px">手机号:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="手机号码" name="stu_tel" id="stu_tel"
                                       readonly="readonly">
                            </div>
                        </div>
                        <br>
                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label" for="stu_qq" style="margin-top: 8px">QQ号码:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="QQ号码" name="stu_qq" id="stu_qq"
                                       readonly="readonly">
                            </div>
                        </div>
                        <br>
                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label" for="stu_email" style="margin-top: 8px">电子邮箱:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="电子邮箱" name="stu_email"
                                       id="stu_email" readonly="readonly">
                            </div>
                        </div>
                        <br>

                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label" for="stu_address"
                                   style="margin-top: 8px">家庭住址:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="家庭住址" name="stu_address"
                                       id="stu_address" readonly="readonly">
                            </div>
                        </div>
                        <br>

                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label" for="stu_fromaddress"
                                   style="margin-top: 8px">生源地:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="生源地" name="stu_fromaddress"
                                       id="stu_fromaddress" readonly="readonly">
                            </div>

                        </div>
                        <br>
                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label" for="stu_ec" style="margin-top: 8px">联系人:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="紧急联系人" name="stu_ec" id="stu_ec"
                                       readonly="readonly">
                            </div>
                        </div>
                        <br>
                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label" for="stu_ectel" style="margin-top: 8px">联系电话:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="紧急联系人电话" name="stu_ectel"
                                       id="stu_ectel" readonly="readonly">
                            </div>
                        </div>
                        <br>
                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label" for="stu_counselor"
                                   style="margin-top: 8px">辅导员:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="辅导员姓名" name="stu_counselor"
                                       id="stu_counselor" readonly="readonly">
                            </div>
                        </div>
                        <br>
                    </div>
                </div>
                <div id="con2" class="tab-pane">
                    <div class="modal-body">
                        <div class="form-group">
                            <label class="col-sm-2 control-label" for="stu_code" style="margin-top: 8px">学号:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="学号" autofocus name="stu_code"
                                       id="stu_code_tea" readonly="readonly">
                            </div>
                        </div>
                        <br>
                        <div class="form-group" style="margin-top: 15px">
                            <label class="col-sm-2 control-label" for="stu_schoolname"
                                   style="margin-top: 8px">学校名称:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="stu_schoolname" id="stu_schoolname"
                                       value="商洛学院" readonly="readonly">
                            </div>
                        </div>
                        <br>
                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label" for="stu_department"
                                   style="margin-top: 8px">院系:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="stu_department" id="stu_department"
                                       value="院系" readonly="readonly">
                            </div>
                        </div>
                        <br>
                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label" for="stu_profession"
                                   style="margin-top: 8px">专业:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="stu_profession" id="stu_profession_tea"
                                       value="专业" readonly="readonly">
                            </div>
                        </div>
                        <br>

                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label" for="stu_class" style="margin-top: 8px">班级:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="班级" name="stu_class"
                                       id="stu_class_tea" readonly="readonly">
                            </div>
                        </div>
                        <br>

                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label" for="stu_education"
                                   style="margin-top: 8px">学历:</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" placeholder="学历" name="stu_education"
                                       id="stu_education" readonly="readonly">
                            </div>
                            <label class="col-sm-2 control-label" for="stu_inway" style="margin-top: 8px">大学学制:</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" placeholder="大学学制" name="stu_inway"
                                       id="stu_inway" readonly="readonly">
                            </div>
                        </div>
                        <br>
                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label" for="stu_inTime" style="margin-top: 8px">入学时间:</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" placeholder="入学时间" name="stu_inTime"
                                       id="stu_inTime" readonly="readonly">
                            </div>
                            <label class="col-sm-2 control-label" for="stu_outTime"
                                   style="margin-top: 8px">毕业时间:</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" placeholder="毕业时间" name="stu_outTime"
                                       id="stu_outTime" readonly="readonly">
                            </div>
                        </div>
                        <br>
                    </div><!-- /.modal-content -->
                </div>
                <div id="con3" class="tab-pane">
                    <div class="modal-body">

                        <div class="form-group">
                            <label class="col-sm-2 control-label" for="stu_compjobstatus"
                                   style="margin-top: 8px">就业状态:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="就业状态" name="stu_compjobstatus"
                                       id="stu_compjobstatus" readonly="readonly">
                            </div>

                        </div>
                        <br>

                        <div class="form-group" style="margin-top: 15px">
                            <label class="col-sm-2 control-label" for="stu_compagreement"
                                   style="margin-top: 8px">三方编号:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="三方协议书编号" name="stu_compagreement"
                                       id="stu_compagreement" readonly="readonly">
                            </div>
                        </div>
                        <br>
                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label" for="stu_compname"
                                   style="margin-top: 8px">单位名称:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="单位名称" autofocus name="stu_compname"
                                       id="stu_compname" readonly="readonly">
                            </div>
                        </div>
                        <br>

                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label" for="stu_compcode"
                                   style="margin-top: 8px">信用代码:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="统一社会信用代码/组织机构代码"
                                       name="stu_compcode" id="stu_compcode" readonly="readonly">
                            </div>
                        </div>
                        <br>

                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label" for="stu_compnature"
                                   style="margin-top: 8px">单位性质:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="单位性质" name="stu_compnature"
                                       id="stu_compnature" readonly="readonly">
                            </div>
                        </div>
                        <br>

                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label" for="stu_compkind"
                                   style="margin-top: 8px">单位行业:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="单位行业" name="stu_compkind"
                                       id="stu_compkind" readonly="readonly">
                            </div>
                        </div>
                        <br>

                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label" for="stu_compaddress"
                                   style="margin-top: 8px">单位地址:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="单位地址" name="stu_compaddress"
                                       id="stu_compaddress" readonly="readonly">
                            </div>
                        </div>
                        <br>
                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label" for="stu_compjob"
                                   style="margin-top: 8px">个人岗位:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="个人岗位" name="stu_compjob"
                                       id="stu_compjob" readonly="readonly">
                            </div>
                        </div>
                        <br>
                        <div class="form-group" style="margin-top: 30px">
                            <label class="col-sm-2 control-label" for="stu_compjobguide"
                                   style="margin-top: 8px">指导老师:</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" placeholder="指导老师" name="stu_compjobguide"
                                       id="stu_compjobguide" readonly="readonly">
                            </div>
                        </div>
                        <br>
                    </div>
                </div>
            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>


<!--easy pie chart-->
<script src="/js/easypiechart/jquery.easypiechart.js"></script>
<script src="/js/easypiechart/easypiechart-init.js"></script>

<!--Sparkline Chart-->
<script src="/js/sparkline/jquery.sparkline.js"></script>
<script src="/js/sparkline/sparkline-init.js"></script>

<!--icheck -->
<script src="/js/iCheck/jquery.icheck.js"></script>
<script src="/js/icheck-init.js"></script>

<!-- jQuery Flot Chart-->
<script src="/js/flot-chart/jquery.flot.js"></script>
<script src="/js/flot-chart/jquery.flot.tooltip.js"></script>
<script src="/js/flot-chart/jquery.flot.resize.js"></script>


<!--Morris Chart-->
<script src="/js/morris-chart/morris.js"></script>
<script src="/js/morris-chart/raphael-min.js"></script>

<!--Calendar-->
<script src="/js/calendar/clndr.js"></script>
<script src="/js/calendar/evnt.calendar.init.js"></script>
<script src="/js/calendar/moment-2.2.1.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<!--common scripts for all pages-->
<script src="/js/scripts.js"></script>

<!--Dashboard Charts-->
<script src="/js/dashboard-chart-init.js"></script>

<script type="text/javascript">


    $("#tableStuInfowei").bootstrapTable({ // 对应table标签的id
        url: "teaOperat/selectAllStu",
        method: 'post',
        cache: false,
        striped: true,
        pagination: true,
        pageSize: 20,
        pageNumber: 1,
        pageList: [10, 20, 30],
        search: false,
        showColumns: false,
        clickToSelect: true,
        smartDisplay: false,
        columns: [{
            checkbox: true
        },
            {
                field: "id",
                title: "id",
                align: "center",
                valign: "middle",
                sortable: "true",
                visible: false
            },
            {
                field: "stu_code",
                title: "学号",
                align: "center",
                valign: "middle",
                sortable: "true",
            }, {
                field: "stu_name",
                title: "姓名",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_department",
                title: "院系",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_profession",
                title: "专业",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_class",
                title: "班级",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_tel",
                title: "电话号码",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_email",
                title: "电子邮箱",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "bornDate",
                title: "出生日期",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_compjobstatus",
                title: "就业状态",
                align: "center",
                valign: "middle",
                sortable: "true"
            }
            , {
                field: "",
                title: "操作",
                align: "center",
                valign: "middle",
                formatter: function (value, row, index) {
                    return '<button stu_code="' + row.stu_code + '"  data-toggle="modal"  data-target="#myModalChooseInfo" type="button" class="btn btn-info" onclick="stuClickInfo(this)">详情</button>' +
                        '&nbsp;&nbsp;<button stu_code="' + row.stu_code + '"  data-toggle="modal"  data-target="#myModalTalk" type="button" class="btn btn-success" onclick="stuClickTalk(this)">私信</button>';
                }
            }
        ],
        formatNoMatches: function () {
            return '';
        },
    });



    $("#tableStuInfoyi").bootstrapTable({ // 对应table标签的id
        url: "teaOperat/selectAllStuyi",
        method: 'post',
        cache: false,
        striped: true,
        pagination: true,
        pageSize: 20,
        pageNumber: 1,
        pageList: [10, 20, 30],
        search: false,
        showColumns: false,
        clickToSelect: true,
        smartDisplay: false,
        columns: [{
            checkbox: true
        },
            {
                field: "id",
                title: "id",
                align: "center",
                valign: "middle",
                sortable: "true",
                visible: false
            },
            {
                field: "stu_code",
                title: "学号",
                align: "center",
                valign: "middle",
                sortable: "true",
            }, {
                field: "stu_name",
                title: "姓名",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_department",
                title: "院系",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_profession",
                title: "专业",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_class",
                title: "班级",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_tel",
                title: "电话号码",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_email",
                title: "电子邮箱",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "bornDate",
                title: "出生日期",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_compjobstatus",
                title: "就业状态",
                align: "center",
                valign: "middle",
                sortable: "true"
            }
            , {
                field: "",
                title: "操作",
                align: "center",
                valign: "middle",
                formatter: function (value, row, index) {
                    return '<button stu_code="' + row.stu_code + '"  data-toggle="modal"  data-target="#myModalChooseInfo" type="button" class="btn btn-info" onclick="stuClickInfo(this)">详情</button>' +
                        '&nbsp;&nbsp;<button stu_code="' + row.stu_code + '"  data-toggle="modal"  data-target="#myModalTalk" type="button" class="btn btn-success" onclick="stuClickTalk(this)">私信</button>';
                }
            }
        ],
        formatNoMatches: function () {
            return '';
        },
    });

    $("#tableStuInfosheng").bootstrapTable({ // 对应table标签的id
        url: "teaOperat/selectAllStusheng",
        method: 'post',
        cache: false,
        striped: true,
        pagination: true,
        pageSize: 20,
        pageNumber: 1,
        pageList: [10, 20, 30],
        search: false,
        showColumns: false,
        clickToSelect: true,
        smartDisplay: false,
        columns: [{
            checkbox: true
        },
            {
                field: "id",
                title: "id",
                align: "center",
                valign: "middle",
                sortable: "true",
                visible: false
            },
            {
                field: "stu_code",
                title: "学号",
                align: "center",
                valign: "middle",
                sortable: "true",
            }, {
                field: "stu_name",
                title: "姓名",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_department",
                title: "院系",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_profession",
                title: "专业",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_class",
                title: "班级",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_tel",
                title: "电话号码",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_email",
                title: "电子邮箱",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "bornDate",
                title: "出生日期",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_compjobstatus",
                title: "就业状态",
                align: "center",
                valign: "middle",
                sortable: "true"
            }
            , {
                field: "",
                title: "操作",
                align: "center",
                valign: "middle",
                formatter: function (value, row, index) {
                    return '<button stu_code="' + row.stu_code + '"  data-toggle="modal"  data-target="#myModalChooseInfo" type="button" class="btn btn-info" onclick="stuClickInfo(this)">详情</button>' +
                        '&nbsp;&nbsp;<button stu_code="' + row.stu_code + '"  data-toggle="modal"  data-target="#myModalTalk" type="button" class="btn btn-success" onclick="stuClickTalk(this)">私信</button>';
                }
            }
        ],
        formatNoMatches: function () {
            return '';
        },
    });

    $("#tableStuInfo").bootstrapTable({ // 对应table标签的id
        url: "",
        method: 'post',
        cache: false,
        striped: true,
        pagination: true,
        pageSize: 20,
        pageNumber: 1,
        pageList: [10, 20, 30],
        search: false,
        showColumns: false,
        clickToSelect: true,
        smartDisplay: false,
        columns: [{
            checkbox: true
        },
            {
                field: "id",
                title: "id",
                align: "center",
                valign: "middle",
                sortable: "true",
                visible: false
            },
            {
                field: "stu_code",
                title: "学号",
                align: "center",
                valign: "middle",
                sortable: "true",
            }, {
                field: "stu_name",
                title: "姓名",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_department",
                title: "院系",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_profession",
                title: "专业",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_class",
                title: "班级",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_tel",
                title: "电话号码",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_email",
                title: "电子邮箱",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "bornDate",
                title: "出生日期",
                align: "center",
                valign: "middle",
                sortable: "true"
            }, {
                field: "stu_compjobstatus",
                title: "就业状态",
                align: "center",
                valign: "middle",
                sortable: "true"
            }
            , {
                field: "",
                title: "操作",
                align: "center",
                valign: "middle",
                formatter: function (value, row, index) {
                    return '<button stu_code="' + row.stu_code + '"  data-toggle="modal"  data-target="#myModalChooseInfo" type="button" class="btn btn-info" onclick="stuClickInfo(this)">详情</button>' +
                        '&nbsp;&nbsp;<button stu_code="' + row.stu_code + '"  data-toggle="modal"  data-target="#myModalTalk" type="button" class="btn btn-success" onclick="stuClickTalk(this)">私信</button>';
                }
            }
        ],
        formatNoMatches: function () {
            return '';
        },
    });


    function selectStuInfo(e) {
        var stu_code = $(e).attr('stu_code');
    }

    function stuClickTalk(e) {

        var stu_code = $(e).attr('stu_code');

        $.ajax({
            url: "/stuOperat/selectStuByStuCode/" + "?stu_code=" + stu_code,//url 统一资源定位符
            type: "POST",
            success: function (result) {
                if (result != null) {
                    if (result.stu_name != '0') {
                        document.getElementById("stu_name_talk").innerText = result.stu_name;
                    }
                    if (result.stu_name == 'undefined' || result.stu_name == undefined) {
                        document.getElementById("stu_name_talk").innerText = '';
                    }

                } else {
                    swal("查询失败!", "请联系管理员处理!", "error");
                }
            },
            error: function (data) {

            }
        });
    }

    function employmentdistribution() {
        window.location.href = "employmentdistribution";
    }

    function stuClickInfo(e) {
        var stu_code = $(e).attr('stu_code');
        $.ajax({
            url: "/stuOperat/selectStuCode/" + "?stu_code=" + stu_code,//url 统一资源定位符
            type: "POST",
            success: function (result) {
                $("#imageIdCode").attr("src",result);
            },
            error: function (data) {

            }
        });

        $.ajax({
            url: "/stuOperat/selectStuByStuCode/" + "?stu_code=" + stu_code,//url 统一资源定位符
            type: "POST",
            success: function (result) {
                if (result != null) {
                    if (result.stu_name != '0') {
                        document.getElementById("stu_name_tea").value = result.stu_name;
                    }
                    if (result.stu_name == 'undefined' || result.stu_name == undefined) {
                        document.getElementById("stu_name_tea").value = '';
                    }
                    if (result.stu_address != '0') {
                        document.getElementById("stu_address").value = result.stu_address;
                    }
                    if (result.stu_address == 'undefined' || result.stu_address == undefined) {
                        document.getElementById("stu_address").value = '';
                    }

                    if (result.stu_counselor != '0') {
                        document.getElementById("stu_counselor").value = result.stu_counselor;
                    }
                    if (result.stu_counselor == 'undefined' || result.stu_counselor == undefined) {
                        document.getElementById("stu_counselor").value = '';
                    }

                    if (result.stu_ec != '0') {
                        document.getElementById("stu_ec").value = result.stu_ec;
                    }
                    if (result.stu_ec == 'undefined' || result.stu_ec == undefined) {
                        document.getElementById("stu_ec").value = '';
                    }

                    if (result.stu_ectel != '0') {
                        document.getElementById("stu_ectel").value = result.stu_ectel;
                    }
                    if (result.stu_ectel == 'undefined' || result.stu_ectel == undefined) {
                        document.getElementById("stu_ectel").value = '';
                    }

                    if (result.stu_email != '0') {
                        document.getElementById("stu_email").value = result.stu_email;
                    }
                    if (result.stu_email == 'undefined' || result.stu_email == undefined) {
                        document.getElementById("stu_email").value = '';
                    }

                    if (result.stu_compjobstatus != '0') {
                        document.getElementById("stu_compjobstatus").value = result.stu_compjobstatus;
                    }
                    if (result.stu_compjobstatus == 'undefined' || result.stu_compjobstatus == undefined) {
                        document.getElementById("stu_compjobstatus").value = '';
                    }


                    if (result.stu_idcard != '0') {
                        document.getElementById("stu_idcard").value = result.stu_idcard;
                    }
                    if (result.stu_idcard == 'undefined' || result.stu_idcard == undefined) {
                        document.getElementById("stu_idcard").value = '';
                    }

                    if (result.stu_fromaddress != '0') {
                        document.getElementById("stu_fromaddress").value = result.stu_fromaddress;
                    }
                    if (result.stu_fromaddress == 'undefined' || result.stu_fromaddress == undefined) {
                        document.getElementById("stu_fromaddress").value = '';
                    }

                    if (result.stu_qq != '0') {
                        document.getElementById("stu_qq").value = result.stu_qq;
                    }
                    if (result.stu_qq == 'undefined' || result.stu_qq == undefined) {
                        document.getElementById("stu_qq").value = '';
                    }

                    if (result.stu_tel != '0') {
                        document.getElementById("stu_tel").value = result.stu_tel;
                    }
                    if (result.stu_tel == 'undefined' || result.stu_tel == undefined) {
                        document.getElementById("stu_tel").value = '';
                    }


                    if (result.stu_profession != '0') {
                        document.getElementById("stu_profession_tea").value = result.stu_profession;
                    }
                    if (result.stu_profession == 'undefined' || result.stu_profession == undefined) {
                        document.getElementById("stu_profession_tea").value = '';
                    }


                    if (result.stu_sex != '0') {
                        document.getElementById("stu_sex").value = result.stu_sex;
                    }

                    if (result.stu_politics != '0') {
                        document.getElementById("stu_politics").value = result.stu_politics;
                    }


                    if (result.stu_code != '0') {
                        document.getElementById("stu_code_tea").value = result.stu_code;
                    }
                    if (result.stu_code == 'undefined' || result.stu_code == undefined) {
                        document.getElementById("stu_code_tea").value = '';
                    }

                    if (result.stu_department != '0') {
                        document.getElementById("stu_department").value = result.stu_department;
                    }
                    if (result.stu_department == 'undefined' || result.stu_department == undefined) {
                        document.getElementById("stu_department").value = '';
                    }


                    if (result.stu_class != '0') {
                        document.getElementById("stu_class_tea").value = result.stu_class;
                    }
                    if (result.stu_class == 'undefined' || result.stu_class == undefined) {
                        document.getElementById("stu_class_tea").value = '';
                    }

                    if (result.stu_education != '0') {
                        document.getElementById("stu_education").value = result.stu_education;
                    }
                    if (result.stu_education == 'undefined' || result.stu_education == undefined) {
                        document.getElementById("stu_education").value = '';
                    }

                    if (result.stu_inway != '0') {
                        document.getElementById("stu_inway").value = result.stu_inway;
                    }
                    if (result.stu_inway == 'undefined' || result.stu_inway == undefined) {
                        document.getElementById("stu_inway").value = '';
                    }

                    if (result.stu_inTime != '0') {
                        document.getElementById("stu_inTime").value = result.stu_inTime;
                    }
                    if (result.stu_inTime == 'undefined' || result.stu_inTime == undefined) {
                        document.getElementById("stu_inTime").value = '';
                    }

                    if (result.stu_outTime != '0') {
                        document.getElementById("stu_outTime").value = result.stu_outTime;
                    }
                    if (result.stu_outTime == 'undefined' || result.stu_outTime == undefined) {
                        document.getElementById("stu_outTime").value = '';
                    }

                    if (result.stu_compagreement != '0') {
                        document.getElementById("stu_compagreement").value = result.stu_compagreement;
                    }
                    if (result.stu_compagreement == 'undefined' || result.stu_compagreement == undefined) {
                        document.getElementById("stu_compagreement").value = '';
                    }


                    if (result.stu_updateagreement != '0') {
                        document.getElementById("stu_updateagreement").value = result.stu_updateagreement;
                    }
                    if (result.stu_updateagreement == 'undefined' || result.stu_updateagreement == undefined) {
                        document.getElementById("stu_updateagreement").value = '';
                    }

                    if (result.stu_compname != '0') {
                        document.getElementById("stu_compname").value = result.stu_compname;
                    }
                    if (result.stu_compname == 'undefined' || result.stu_compname == undefined) {
                        document.getElementById("stu_compname").value = '';
                    }

                    if (result.stu_compcode != '0') {
                        document.getElementById("stu_compcode").value = result.stu_compcode;
                    }
                    if (result.stu_compcode == 'undefined' || result.stu_compcode == undefined) {
                        document.getElementById("stu_compcode").value = '';
                    }

                    if (result.stu_compnature != '0') {
                        document.getElementById("stu_compnature").value = result.stu_compnature;
                    }
                    if (result.stu_compnature == 'undefined' || result.stu_compnature == undefined) {
                        document.getElementById("stu_compnature").value = '';
                    }

                    if (result.stu_compkind != '0') {
                        document.getElementById("stu_compkind").value = result.stu_compkind;
                    }
                    if (result.stu_compkind == 'undefined' || result.stu_compkind == undefined) {
                        document.getElementById("stu_compkind").value = '';
                    }

                    if (result.stu_compaddress != '0') {
                        document.getElementById("stu_compaddress").value = result.stu_compaddress;
                    }
                    if (result.stu_compaddress == 'undefined' || result.stu_compaddress == undefined) {
                        document.getElementById("stu_compaddress").value = '';
                    }

                    if (result.stu_compjob != '0') {
                        document.getElementById("stu_compjob").value = result.stu_compjob;
                    }
                    if (result.stu_compjob == 'undefined' || result.stu_compjob == undefined) {
                        document.getElementById("stu_compjob").value = '';
                    }

                    if (result.stu_compjobguide != '0') {
                        document.getElementById("stu_compjobguide").value = result.stu_compjobguide;
                    }
                    if (result.stu_compjobguide == 'undefined' || result.stu_compjobguide == undefined) {
                        document.getElementById("stu_compjobguide").value = '';
                    }


                } else {
                    swal("查询失败!", "请联系管理员处理!", "error");
                }
            },
            error: function (data) {

            }
        });
    };

    $(document).keydown(function () {
        if (event.keyCode == 13) {//回车键的键值为13
            var data = $('#searchform').serialize();//表单序列化 form表单的id属性值
            $.ajax({
                url: "/teaOperat/selectAllStu",//url 统一资源定位符
                type: "POST",
                data: data,
                success: function (stulist) {
                    console.log(stulist)
                    $('#tableStuInfo').bootstrapTable('load', stulist);
                },
                error: function (data) {

                }
            });
        }
    });

    function showwei() {
        document.getElementById("tableStuInfoDiv").style.display = "none";//隐藏
        document.getElementById("table1").style.display = "";//显示
        document.getElementById("table2").style.display = "";//显示
        document.getElementById("table3").style.display = "";//显示
    }
    function showyi() {
        document.getElementById("tableStuInfoDiv").style.display = "none";//隐藏
        document.getElementById("table1").style.display = "";//显示
        document.getElementById("table2").style.display = "";//显示
        document.getElementById("table3").style.display = "";//显示
    }
    function showsheng() {
        document.getElementById("tableStuInfoDiv").style.display = "none";//隐藏
        document.getElementById("table1").style.display = "";//显示
        document.getElementById("table2").style.display = "";//显示
        document.getElementById("table3").style.display = "";//显示
    }

    function mohuSelectStu() {
        var data = $('#searchform').serialize();//表单序列化 form表单的id属性值
        document.getElementById("tableStuInfoDiv").style.display = "";//显示
        document.getElementById("table1").style.display = "none";//隐藏
        document.getElementById("table2").style.display = "none";//隐藏
        document.getElementById("table3").style.display = "none";//隐藏
        $.ajax({
            url: "/teaOperat/selectAllStumohu",//url 统一资源定位符
            type: "POST",
            data: data,
            success: function (stulist) {
                for (var i = 0; i < stulist.data.length; i++) {
                    $('#tableStuInfo').bootstrapTable('load', stulist);
                }
            },
            error: function (data) {

            }
        });
    }

    var arr = ["人文学院", "艺术学院", "健康管理学院", "经济管理学院", "马克思主义学院", "城乡规划与建筑工程学院", "数学与计算机应用学院", "电子信息与电信工程学院", "化学工程与现代材料学院", "生物医药与食品工程学院"];
    var positionArr = ["教师", "辅导员", "班主任"];

    window.onload = function () {
        allDepartment();
        allPosition();
    };


    function allPosition() {
        var tea_duties = document.getElementById("tea_duties");
        for (var i = 0; i < positionArr.length; i++) {
            var o_l = new Option(positionArr[i], positionArr[i]);
            tea_duties.options.add(o_l);
        }
    }

    function allDepartment() {
        var tea_department = document.getElementById("tea_department");
        for (var i = 0; i < arr.length; i++) {
            var o_l = new Option(arr[i], arr[i]);
            tea_department.options.add(o_l);
        }
    }


    var username = window.sessionStorage.getItem("tea_u_name");
    document.getElementById("currentuser").innerHTML = username;

    function clicklogo() {
        window.location.href = "teacher";
    }

    function general() {
        window.location.href = "general";
    }

    function submitReleaseInfo() {
        var data = $('#myFormInfoRelease').serialize();//表单序列化 form表单的id属性值
        $.ajax({
            url: 'info/TeasubmitReleaseInfo',
            type: "POST",
            data: data,
            success: function (result) {
                if (result == '已保存') {
                    swal("信息发布成功!", "您发布的信息已经录入本系统!", "success");
                } else if (result == '未保存') {
                    swal("请勿重复发布!", "您发布的信息已经存在与本系统!", "error");
                    return false;
                }
            },
            error: function (data) {

            }
        });
    }


    function submitTeaBaseInfo() {
        var data = $('#myFormInfo').serialize();//表单序列化 form表单的id属性值
        $.ajax({
            url: 'user/submitTeaBaseInfo',
            type: "POST",
            data: data,
            success: function (result) {
                if (result == '已保存') {
                    swal("保存成功!", "您的个人基础信息已经录入本系统!", "success");
                } else {

                }
            },
            error: function (data) {

            }
        });
    }

    function selectTeaBaseInfo() {
        $.ajax({
            url: 'user/selectTeaBaseInfo',
            type: "POST",
            success: function (result) {
                if (result != null) {
                    if (result.tea_name != '0') {
                        document.getElementById("tea_name").value = result.tea_name;
                    }
                    if (result.tea_name == 'undefined' || result.tea_name == undefined) {
                        document.getElementById("tea_name").value = '';
                    }

                    if (result.tea_schoolname != '0') {
                        document.getElementById("tea_schoolname").value = result.tea_schoolname;
                    }
                    if (result.tea_schoolname == 'undefined' || result.tea_schoolname == undefined) {
                        document.getElementById("tea_schoolname").value = '';
                    }

                    if (result.tea_department != '0') {
                        document.getElementById("tea_department").value = result.tea_department;
                    }
                    if (result.tea_department == 'undefined' || result.tea_department == undefined) {
                        document.getElementById("tea_department").value = '';
                    }

                    if (result.tea_duties != '0') {
                        document.getElementById("tea_duties").value = result.tea_duties;
                    }
                    if (result.tea_duties == 'undefined' || result.tea_duties == undefined) {
                        document.getElementById("tea_duties").value = '';
                    }

                    if (result.tea_tel != '0') {
                        document.getElementById("tea_tel").value = result.tea_tel;
                    }
                    if (result.tea_tel == 'undefined' || result.tea_tel == undefined) {
                        document.getElementById("tea_tel").value = '';
                    }

                    if (result.tea_qq != '0') {
                        document.getElementById("tea_qq").value = result.tea_qq;
                    }
                    if (result.tea_qq == 'undefined' || result.tea_qq == undefined) {
                        document.getElementById("tea_qq").value = '';
                    }

                    if (result.tea_email != '0') {
                        document.getElementById("tea_email").value = result.tea_email;
                    }
                    if (result.tea_email == 'undefined' || result.tea_email == undefined) {
                        document.getElementById("tea_email").value = '';
                    }

                    if (result.tea_code != '0') {
                        document.getElementById("tea_code").value = result.tea_code;
                    }
                    if (result.tea_code == 'undefined' || result.tea_code == undefined) {
                        document.getElementById("tea_code").value = '';
                    }
                }
            },
            error: function (data) {

            }
        });
    }

    function deleteAcount() {
        swal({
            title: "确认注销账号吗?",
            text: "账号一旦注销,将无法找回,注册不易,且行且珍惜",
            icon: "warning",
            dangerMode: true,
            buttons: ["考虑一下", "含泪注销"],
        }).then(function (ok) {
            if (ok) {
                $.ajax({
                    url: 'user/teadeleteAcount',
                    method: 'delete',
                    dataType: 'json',
                    success: function (result) {
                        if (result == '已注销') {
                            swal("注销成功!", "期待您下次使用本系统!", "success");
                            window.location.href = "login";
                        } else {
                            swal("注销失败!", "你的账户目前不能被注销!", "error");
                        }
                    },
                    error: function (data) {
                        swal("注销成功!", "期待您下次使用本系统!", "success");
                        window.location.href = "login";
                    }
                });
            } else {
                swal("很开心您放弃了本次操作!");
            }
        });


    }

    function loginout() {

        swal({
            title: "确认退出当前账号吗?",
            icon: "warning",
            dangerMode: true,
            buttons: ["取消", "确认"],
        }).then(function (ok) {
            if (ok) {
                $.ajax({
                    url: "/user/tealoginout",//url 统一资源定位符
                    type: "POST",
                    success: function (result) {
                        if (result == '已退出') {
                            window.location.href = "tealogin";
                            swal("退出成功!", "再次登录请前往登陆页面", "success");
                        } else {
                            swal("退出失败!", "用户名或密码出现错误", "error");
                        }
                    },
                    error: function (data) {
                        swal("退出成功!", "再次登录请前往登陆页面", "success");
                    }
                });
            } else {
                swal("很开心您放弃了本次操作!");
            }
        });


    }


    function checkpwd() {
        var u_oldpwd = document.getElementById("u_oldpwd").value;
        if (u_oldpwd == null || u_oldpwd == '') {
            swal("原密码不能为空!", "请输入原密码进行密码修改", "error");
            return false;
        }
        $.ajax({
            url: "/user/teacheckpwd?u_oldpwd=" + u_oldpwd,//url 统一资源定位符
            type: "POST",
            success: function (result) {
                if (result == '密码存在') {

                } else {
                    swal("原密码错误", "如忘记密码可在登录页进行忘记密码操作", "error");
                }
            },
            error: function (data) {

            }
        });
    }

    function submitpwd() {
        var u_newpwd = document.getElementById("u_newpwd").value;
        var u_surenewpwd = document.getElementById("u_surenewpwd").value;

        if (u_newpwd == null || u_newpwd == '') {
            swal("新密码不能为空!", "请输入新密码进行密码修改", "error");
            return false;
        }

        if (u_newpwd.length < 7) {
            swal("新密码须超过6位!", "请重新输入", "error");
            document.getElementById("u_newpwd").value = "";
            document.getElementById("u_surenewpwd").value = "";
            return false;
        }
        if (u_newpwd != u_surenewpwd) {
            swal("两次密码不一致", "请重新输入密码", "error");
            document.getElementById("u_newpwd").value = "";
            document.getElementById("u_surenewpwd").value = "";
            return false;
        }
        $.ajax({
            url: "/user/teaupdatepwd?u_newpwd=" + u_newpwd,//url 统一资源定位符
            type: "POST",
            success: function (result) {
                if (result == '已修改') {
                    swal("修改成功!", "下次登陆请使用新密码进行登录", "success");
                } else {
                    swal("原密码错误", "如忘记密码可在登录页进行忘记密码操作", "error");
                }
            },
            error: function (data) {

            }
        });
    }


</script>


</body>
</html>
